<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<html>
<body>
<jsp:include page="_head_room.jsp"></jsp:include>
<form class="form-inline" action="" method="get">
查询排名前几名：<input type="text" placeholder="默认前10名" name="limit" value=""/>&nbsp;&nbsp;
从
  <div class="datepicker input-append">
    <input data-format="yyyy-MM-dd" type="text" value="${beginDate}" name="beginDate"></input>
    <span class="add-on">
      <i data-time-icon="icon-time" data-date-icon="icon-calendar">
      </i>
    </span>
  </div>
  到
  <div class="datepicker input-append">
    <input data-format="yyyy-MM-dd" type="text" value="${endDate}" name="endDate"></input>
    <span class="add-on">
      <i data-time-icon="icon-time" data-date-icon="icon-calendar">
      </i>
    </span>
  </div>
  <button type="submit" class="btn">查询</button>
</form>
<div>
	<p>
		<span>K币消耗排名</span>
	</p>
</div>
<table class="table table-bordered">
  <thead>
    <tr>
      <th>序号</th>
      <th>消费量</th>
      <th>房间名</th>
      <th>房主</th>
    </tr>
  </thead>
  <tbody>
  <c:forEach var="m" items="${all.goldList}" varStatus="vs">
    <tr>
      <td>${vs.count}</td>
      <td>${m.value.consume}</td>
      <td>${m.value.name}</td>
      <td><tags:user id="${m.value.playerId}"></tags:user></td>
    </tr>
  </c:forEach>
  </tbody>
</table>
<div>
	<p>
		<span>分贝消耗排名</span>
	</p>
</div>
<table class="table table-bordered">
  <thead>
    <tr>
      <th>序号</th>
      <th>消费量</th>
      <th>房间名</th>
      <th>房主</th>
    </tr>
  </thead>
  <tbody>
  <c:forEach var="m" items="${all.silverList}" varStatus="vs">
    <tr>
      <td>${vs.count}</td>
      <td>${m.value.consume}</td>
      <td>${m.value.name}</td>
      <td><tags:user id="${m.value.playerId}"></tags:user></td>
    </tr>
  </c:forEach>
  </tbody>
</table>
<div>
	<p>
		<span>房币消耗</span>
	</p>
</div>
<table class="table table-bordered">
  <thead>
    <tr>
      <th>序号</th>
      <th>总额</th>
      <th>房间名</th>
      <th>房主</th>
    </tr>
  </thead>
  <tbody>
  <c:forEach var="m" items="${all.roombiList}" varStatus="vs">
    <tr>
      <td>${vs.count}</td>
      <td>${m.consume}</td>
      <td>${m.name}</td>
      <td><tags:user id="${m.playerId}"></tags:user></td>
    </tr>
  </c:forEach>
  </tbody>
</table>
<div>
	<p>
		<span>上麦统计</span>
	</p>
</div>
<table class="table table-bordered">
  <thead>
    <tr>
      <th>序号</th>
      <th>总上麦次数</th>
      <th>房间名</th>
      <th>房主</th>
    </tr>
  </thead>
  <tbody>
  <c:forEach var="m" items="${all.upmikeList}" varStatus="vs">
    <tr>
      <td>${vs.count}</td>
      <td>${m.times}</td>
      <td>${m.name}</td>
      <td><tags:user id="${m.playerId}"></tags:user></td>
    </tr>
  </c:forEach>
  </tbody>
</table>
</body>
</html>